package com.ht.service;

import com.ht.bean.Dep;
import com.ht.common.Pager;
import com.ht.dao.DepDao;

public class DepServiceImpl implements DepService{
	
	private DepDao depDao;
	
	public void setDepDao(DepDao depDao) {
		this.depDao = depDao;
	}

	@Override
	public Dep add(Dep d) {
		return depDao.add(d);
	}

	@Override
	public Dep query(Dep d) {
		return depDao.query(d);
	}

	@Override
	public Dep update(Dep d) {
		return depDao.update(d);
	}

	@Override
	public Pager<Dep> queryAll(Pager<Dep> d) {
		return depDao.queryAll(d);
	}

	@Override
	public Object count() {
		return null;
	}

	@Override
	public void delete(Dep d) {
		depDao.delete(d);
	}

}
